export default function request(url, data, method = 'GET'){
	return new Promise((resolve, reject) => {
		uni.request({
			url: 'https://shopapi.smartisan.com' + url,
			data,
			method,
			success(res) {
				resolve(res.data);
			},
			fail(error) {
				reject(error);
			}
		})
	})
}